﻿@page "/sizes"
@inherits BComponentBase
<BButtonGroup>
    <BButton Type="ButtonType.Primary" Text="添加" OnClick="ShowCreateWindowAsync"></BButton>
</BButtonGroup>
<BTable DataSource="datas" IsEditable="false" EnableAlwaysRender="true" AutoGenerateColumns="false" EnableMarkupString="true">
    <BTableColumns>
        <BTableColumn Text="尺寸" Property="@nameof(AuthorModel.Name)"></BTableColumn>
        <BTableColumn Text="描述" Property="@nameof(AuthorModel.Description)"></BTableColumn>
        <BTableTemplateColumn Text="操作">
            <BButton Size="ButtonSize.Mini" Text="修改" OnClick="e=>ShowUpdateWindowAsync(context)"></BButton>
            <BButton Size="ButtonSize.Mini" Text="删除" OnClick="e=>DeleteAsync(context)"></BButton>
        </BTableTemplateColumn>
    </BTableColumns>
</BTable>